Release 10.1A: OpenEdge Reporting:
Query/Results for UNIX
Preface
This Preface contains the following sections:
Purpose
This guide introduces you to the character (text-mode) version of Progress ResultsŪ. Query/Results, more commonly referenced throughout this guide as Results, is an interactive, menu-driven tool that lets you query, report, and maintain information stored in Progress-supported databases.
Audience
This guide is an end-user manual that explains how to use the default Results application. If you purchased Results through a third-party application vendor, the vendor might have modified Results. These modifications might include adding or removing features, or even incorporating Results into another application. If you have a modified Results application, your vendor might modify the help system to reflect these changes or provide you with additional documentation.
Organization
Chapter 1 "Results Product Overview"
Describes the product in general terms, and summarizes the options on the main menu.
Describes the hardware and software requirements for running the product on your system. Explains how to install the product, log in and out, and how to use the function keys and menus.
Chapter 3 "A Tour Through Results"
Provides a tour through the user options in the Results product. Describes many of the features in the Query, Reports, Data Export, and Labels modules.
Describes different ways to retrieve information from a database using the Query module.
Describes how to create reports, and provides examples.
Describes and provides examples of how to generate mailing labels.
Chapter 7 "Data Export Module"
Describes how to export your data in formats useful to other software.
Chapter 8 "Multiple Databases with Results"
Describes the implications of using Results with more than one database open at the same time.
Chapter 9 "Database Administration"
Defines how to perform database administration tasks such as defining relations among files, establishing file security, and defining device interfaces such as printers and terminals.
Chapter 10 "Integrating Results into Existing Applications"
Describes how application developers can integrate Results into existing applications.
Appendix A, "Startup and Shutdown Procedures"
Describes how to start and stop a Results session.
Appendix B, "Option Descriptions"
Describes the options that appear in the user modules of the Results package. For example, it describes the options in the Query, Reports, Labels, and Data Export modules.
Appendix C, "Field Display Formats"
Describes how Results handles display formats for fields.
Lists Results’s internal limits, such as maximum number of files that can be joined, total number of query forms, and so forth.
Appendix E, "Files that Results Creates"
Describes the file extensions used by Results.
Appendix F, "Order of Evaluation"
Describes how Results evaluate expressions in WHERE clauses.
Appendix G, "Helpful Information"
Describes and offers solutions to some common problems in database administration.
Using this manual
To maximize your use of this tutorial, first skim the entire tutorial to get an idea of its content and the various tasks you can perform to become familiar with the Query product’s functionality. Then, return to those sections you intend to explore more completely.
Typographical conventions
This manual uses the following typographical conventions:
Examples of syntax descriptions
In this example,
ACCUMis a keyword, andaggregateandexpressionare variables:
FORis one of the statements that can end with either a period or a colon, as in this example:
In this example,
STREAMstream,UNLESS-HIDDEN, andNO-ERRORare optional:
In this example, the outer (small) brackets are part of the language, and the inner (large) brackets denote an optional item:
A called external procedure must use braces when referencing compile-time arguments passed by a calling procedure, as shown in this example:
In this example,
EACH,FIRST, andLASTare optional, but you can choose only one of them:
In this example, you must include two expressions, and optionally you can include more. Multiple expressions are separated by commas:
In this example, you must specify
MESSAGEand at least oneexpressionorSKIP[ (n) ], and any number of additionalexpressionorSKIP[ (n) ] is allowed:
In this example, you must specify {
include-file, then optionally any number ofargumentor&argument-name = "argument-value", and then terminate with }:
Long syntax descriptions split across lines
Some syntax descriptions are too long to fit on one line. When syntax descriptions are split across multiple lines, groups of optional and groups of required items are kept together in the required order.
In this example,
WITHis followed by six optional items:
Complex syntax descriptions with both required and optional elements
Some syntax descriptions are too complex to distinguish required and optional elements by bracketing only the optional elements. For such syntax, the descriptions include both braces (for required elements) and brackets (for optional elements).
In this example,
ASSIGNrequires either one or morefieldentries or onerecord. Options available withfieldorrecordare grouped with braces and brackets:
Accessing files in procedure libraries
Documentation examples are stored in procedure libraries,
prodoc.plandprohelp.pl, in thesrcdirectory where OpenEdge™ is installed.You must create all subdirectories required by a library before trying to extract files from the library. You can see what directories and subdirectories a library needs by using the
PROLIB-listcommand to view the contents of the library. See OpenEdge Deployment: Managing 4GL Applications for more details on thePROLIButility.Creating a listing of the procedure libraries
Creating a listing of the source files from a procedure library involves running
PROENVto set up your OpenEdge environment, and runningPROLIB.
![]()
To create a listing of the source files from a procedure library:
- From the Control Panel or the Progress Program Group, double-click the Proenv icon.
- The Proenv window appears, with the
proenvprompt.Running
Proenvsets theDLCenvironment variable to the directory where you installed OpenEdge (by default,C:\Program Files\Progress).Proenvalso adds theDLCenvironment variable to yourPATHenvironment variable and adds thebindirectory (PATH=%DLC%;%DLC%\bin;%PATH%).- At the
proenvprompt, enter the following command to create theprodoc.txttext file, which contains the file listing for theprodoc.pllibrary:
Extracting source files from procedure libraries (UNIX)
![]()
To extract source files from procedure libraries:
- Run the
PROENVutility:
Running
proenvsets theDLCenvironment variable to the directory where you installed OpenEdge (by default,/usr/dlc). Theproenvutility also adds the bin directory under theDLCenvironment variable to yourPATHenvironment variable (PATH=$DLC/bin:$PATH).- At the
proenvprompt, create theprodocdirectory in your OpenEdge working directory:
- Create the
proghanddirectory underprodoc:
- To extract all examples in a procedure library directory, run the
PROLIButility:
PROLIBextracts all examples intoprodoc/proghand.To extract one source file (
p-wrk1.p) from a procedure library (prodoc.pl), runPROLIBand specify the file you want to extract as it is stored in the procedure library:
PROLIBextractsp-wrk-1.pintoprodoc/proghand.OpenEdge messages
OpenEdge displays several types of messages to inform you of routine and unusual occurrences:
- Execution messages inform you of errors encountered while OpenEdge is running a procedure; for example, if OpenEdge cannot find a record with a specified index field value.
- Compile messages inform you of errors found while OpenEdge is reading and analyzing a procedure before running it; for example, if a procedure references a table name that is not defined in the database.
- Startup messages inform you of unusual conditions detected while OpenEdge is getting ready to execute; for example, if you entered an invalid startup parameter.
After displaying a message, OpenEdge proceeds in one of several ways:
- Continues execution, subject to the error-processing actions that you specify or that are assumed as part of the procedure. This is the most common action taken after execution messages.
- Returns to the Progress Procedure Editor, so you can correct an error in a procedure. This is the usual action taken after compiler messages.
- Halts processing of a procedure and returns immediately to the Procedure Editor. This does not happen often.
- Terminates the current session.
OpenEdge messages end with a message number in parentheses. In this example, the message number is
200:
If you encounter an error that terminates OpenEdge, note the message number before restarting.
Obtaining more information about OpenEdge messages
On UNIX platforms, use the Progress
PROcommand to start a single-user mode character OpenEdge client session and view a brief description of a message by providing its number.
![]()
To use the
PROcommand to obtain a message description by message number:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |